package com.thinkgem.jeesite.modules.devmng.service;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.devmng.dao.DevchkAnswerDao;
import com.thinkgem.jeesite.modules.devmng.entity.DevchkAnswer;
import com.thinkgem.jeesite.modules.devmng.vo.DevchkAnswerWithDevchkItemId;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by admin on 2017-12-3.
 */
@Service
@Transactional(readOnly = true)
public class DevchkAnswerService extends CrudService<DevchkAnswerDao, DevchkAnswer> {

    public List<DevchkAnswer> getByDevchkItemId(String devchkItemId) {
        return this.dao.getByDevchkItemId(devchkItemId);
    }

    public List<DevchkAnswerWithDevchkItemId> findListByDevchkItemIdList(List<String> devchkItemIdList) {
        return this.dao.findListByDevchkItemIdList(devchkItemIdList);
    }

}
